//
//  LHNetworking.h
//  lhcx
//
//  Created by 赵永杰 on 2017/5/15.
//  Copyright © 2017年 zhaoyongjie. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LHNetworking : NSObject

+ (instancetype)shared;

- (void)GET:(NSString *)URLString
 parameters:(id)parameters
    success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
    failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

- (void)POST:(NSString *)URLString
  parameters:(id)parameters
     success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
     failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

/**
 非自身API请求
 **/
- (void)POSTNoToken:(NSString *)URLString
         parameters:(id)parameters
            success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
            failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

@end
